//
//  BoxMangerBtn.m
//  workApp
//
//  Created by 林 on 2019/1/10.
//  Copyright © 2019 林. All rights reserved.
//

#import "BoxMangerBtn.h"

@implementation BoxMangerBtn
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imageV = [[UIImageView alloc]init];
        self.imageV.backgroundColor = [UIColor whiteColor];
        [self addSubview:self.imageV];
        self.nameLab = [[UILabel alloc]init];
        self.nameLab.textColor = [UIColor colorWithHexStr:@"#9a9a9a"];
        self.nameLab.font = [UIFont systemFontOfSize:15];
        self.nameLab.text = @"重新绑定";
        self.nameLab.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.nameLab];
    }
    return self;
}
- (void)layoutSubviews{
    self.imageV.center = CGPointMake(self.frame.size.width/2, 15);
    self.imageV.bounds = CGRectMake(0, 0, 30, 30);
    self.nameLab.frame = CGRectMake(0, self.imageV.frame.size.height + 5, self.frame.size.width, 20);
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
